import request from "@/utils/request";
export const selectAllPolice = () => {
  return request({
    url: "/api/police-station/selectAllPolice",
    method: "post",
    timeout: 5000,
  });
};
export const disabledOperator = (data) => {
  return request({
    url: "/api/operator/disabledOperator",
    method: "post",
    data,
    timeout: 5000,
  });
};
export const registeredPoliceStation = (data) => {
  return request({
    url: "/api/police-station/registeredPoliceStation",
    method: "post",
    data,
    timeout: 5000,
  });
};
export const enableOperator = (data) => {
  return request({
    url: "/api/operator/enableOperator",
    method: "post",
    data,
    timeout: 5000,
  });
};

export function changeOperator(data) {
	return request({
		url:"/api/operator/changeLevel",
		method:"post",
		data:data,
		timeout:5000
	})
}

export function addOperator(data) {
	return request({
		url:"/api/operator/registration",
		method:"post",
		data:data,
		timeout:5000
	})
}
